pub mod methods {
    pub fn arg_method(x : i32) {
        println!("this is {}", x);
    }

    pub fn args_method(x : i32, y : i32) -> i32 {
        println!("this is {}, {}", x, y);
        return x + y;
    }

    pub fn case_arg(x : i32) -> i32 {
        println!("you num is {}", x);
        if x > 5 {
            return x * 2;
        } else {
            return x + 2;
        }
    }

    pub fn loop_arg(x : i32) -> i32 {
        println!("you num is {}", x);
        if x < 10 {
            let mut num = 0;
            loop {
                num += 1;
                if num > 10 {
                    break;
                }
                println!("num now is {}", num);
            }
            return x + num;
        } else {
            println!("num now is {}", x);
            return x;
        }
    }
}